<!--conf
<sample>
               <product version="2.5" edition="std"/>
                       <modifications>
                               <modified date="090819"/>
                       </modifications>
               </sample>
 --> 
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Active fields</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>

<body>
	<p>Only second and third column will trigger data update</p>
	<div id="gridbox" style="width:600px;height:270px;overflow:hidden"></div>
			
				
				<p><a href="javascript:void(0)" onclick="mygrid.addRow((new Date()).valueOf(),[0,'','','',false,'na',false,''],mygrid.getRowIndex(mygrid.getSelectedId()))">Add row</a></p>
				<p><a href="javascript:void(0)" onclick="mygrid.deleteSelectedItem()">Remove Selected Row</a></p>
	
<script>
	//init grid and set its parameters (this part as always)
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setColumnIds("sales,book,author,price,store,shipping,best,date");
	mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
	mygrid.setInitWidths("50,150,120,80,80,80,80,200")
	mygrid.setColAlign("right,left,left,right,center,left,center,center")
	mygrid.setColTypes("dyn,ed,txt,price,ch,coro,ch,ro");
	mygrid.setSkin("dhx_skyblue");
	mygrid.setColSorting("int,str,str,int,str,str,str,date")
	mygrid.init();
	mygrid.loadXML("php/get.php");	//used just for demo purposes
	
//============================================================================================
	myDataProcessor = new dataProcessor("php/update.php"); //lock feed url
	myDataProcessor.setDataColumns([false,true,true,false]); //only second and third columns will trigger data update
	myDataProcessor.init(mygrid); //link dataprocessor to the grid
//============================================================================================

</script>
		


</body>
</html>


